home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr26 / dos60sup.zip / SETUP.BAT < prev    next >
DOS Batch File  |  1993-04-05  |  7KB  |  283 lines

  1. @echo off
  2. if "%2"=="COPY" goto docopy
  3. echo.
  4. echo Installs the utilities on the MS-DOS 6 Supplemental disks, including:
  5. echo    * AccessDOS - assists persons with disabilities in using MS-DOS 6.
  6. echo    * Keyboard utilities, including Dvorak keyboard layouts.
  7. echo    * A program for creating a bootable compressed floppy disk.
  8. echo    * Utilities from MS-DOS 5.0 that were not included with MS-DOS 6.
  9. echo    * Updated network files for MS-DOS 6.
  10. echo.
  11. if "%1"=="" goto usage
  12. if not exist DISKID01.BAT goto direrr
  13.  
  14. echo Do you wish to install:
  15. echo.
  16. echo   A: All the components (requires about 830K of free disk space)
  17. echo   S: Selected components only
  18. echo   X: Exit
  19. echo.
  20. choice /c:asx "All, Selected, Exit "
  21. if errorlevel 3 goto done
  22. set SD6=S
  23. if not "%SD6%"=="S" goto enverr
  24. if errorlevel 2 goto checkdir
  25. set SD6=A
  26.  
  27.  
  28.  
  29. :checkdir
  30. echo.
  31. expand diskid01.bat %1\amjklfgh.000 > NUL
  32. if exist %1\amjklfgh.000 goto package1
  33.  
  34. echo The directory %1 does not exist.
  35. echo Do you wish to create this directory?
  36. choice /c:yx "Yes, Exit "
  37. if errorlevel 2 goto done
  38.  
  39. echo Creating directory %1.
  40. md %1
  41. expand diskid01.bat %1\amjklfgh.000 > NUL
  42. if not exist %1\amjklfgh.000 goto patherr
  43.  
  44.  
  45.  
  46. :package1
  47. if "%SD6%"=="A" goto auto1
  48. echo.
  49. echo.
  50. echo AccessDOS
  51. echo =========
  52. echo AccessDOS is a package of MS-DOS extensions that provide users who
  53. echo are movement or hearing disabled with better access to computers
  54. echo that run MS-DOS 6. AccessDOS requires about 270K of free disk space.
  55. echo.
  56. echo Do you wish to copy the AccessDOS utilities?
  57. choice /c:ynx "Yes, No, Exit "
  58. echo.
  59. if errorlevel 3 goto done
  60. if errorlevel 2 goto package2
  61.  
  62. :auto1
  63. echo TAG > %1\amjklfgh.001
  64.  
  65.  
  66.  
  67. :package2
  68. if "%SD6%"=="A" goto auto2
  69. echo.
  70. echo Keyboard Utilities
  71. echo ==================
  72. echo This package includes three Dvorak keyboard layouts, which can be used
  73. echo with any standard keyboard. These layouts are specifically designed to
  74. echo help individuals who type with a single hand or who have difficulty
  75. echo with the standard QWERTY layout.
  76. echo.
  77. echo The package also includes KBDBUF.SYS, which allows you to increase your
  78. echo keyboard type-ahead buffer.
  79. echo.
  80. echo This package requires about 25K of free disk space.
  81. echo.
  82. echo Do you wish to copy the keyboard utilities?
  83. choice /c:ynx "Yes, No, Exit "
  84. echo.
  85. if errorlevel 3 goto done
  86. if errorlevel 2 goto package3
  87.  
  88. :auto2
  89. echo TAG > %1\amjklfgh.002
  90.  
  91.  
  92.  
  93. :package3
  94. if "%SD6%"=="A" goto auto3
  95. echo.
  96. echo Creating a Bootable Compressed Floppy Disk
  97. echo ==========================================
  98. echo The DBLBOOT.BAT program creates a bootable compressed floppy disk. This 
  99. echo program requires about 20K of free disk space.
  100. echo.
  101. echo Do you wish to copy this program?
  102. choice /c:ynx "Yes, No, Exit "
  103. echo.
  104. if errorlevel 3 goto done
  105. if errorlevel 2 goto package4
  106.  
  107. :auto3
  108. echo TAG > %1\amjklfgh.003
  109.  
  110.  
  111.  
  112. :package4
  113. if "%SD6%"=="A" goto auto4
  114. echo.
  115. echo Additional MS-DOS Utilites
  116. echo ==========================
  117. echo This package contains utilities from MS-DOS 5.0 that were not included
  118. echo with MS-DOS 6. This package requires about 290K of free disk space.
  119. echo.
  120. echo Do you wish to copy these utiliies?
  121. choice /c:ynx "Yes, No, Exit "
  122. echo.
  123. if errorlevel 3 goto done
  124. if errorlevel 2 goto package5
  125. echo.
  126.  
  127. :auto4
  128. echo TAG > %1\amjklfgh.004
  129.  
  130.  
  131.  
  132. :package5
  133. if "%SD6%"=="A" goto auto5
  134. echo.
  135. echo MS-DOS 6 Network Files
  136. echo ======================
  137. echo If you upgraded to MS-DOS 6 from a version of MS-DOS less than 5.0, you
  138. echo might need to update your network files.  This package contains
  139. echo the networks files that will work with MS-DOS 6. The package requires
  140. echo about 275K of free disk space.
  141. echo.
  142. echo Do you wish to copy the network files?
  143. choice /c:ynx "Yes, No, Exit "
  144. echo.
  145. if errorlevel 3 goto done
  146. if errorlevel 2 goto copyit
  147. echo.
  148.  
  149. :auto5
  150. echo TAG > %1\amjklfgh.005
  151.  
  152.  
  153. :copyit
  154. if not exist %1\amjklfgh.00? goto done
  155.  
  156. echo.
  157. echo Please Wait...
  158. if not exist %1\choice.com  copy choice.com %1 > NUL
  159. copy sd6copy.bat %1 > NUL
  160. if exist %1\expand.exe ren %1\expand.exe expand.999 > NUL
  161. copy expand.exe %1 > NUL
  162. copy setup.bat %1\sd6setup.bat > NUL
  163. %1\sd6setup %1 COPY
  164.  
  165.  
  166.  
  167.  
  168. :docopy
  169. set SD6=1
  170. echo.
  171. echo Copying Supplemental Utilities...
  172. echo ---------------------------------------
  173.  
  174.  
  175. if not exist %1\amjklfgh.001 goto copy2
  176. call %1\sd6copy ADOS.OVL %1
  177. call %1\sd6copy ADOS.COM %1
  178. call %1\sd6copy ADOS.CFG %1
  179. call %1\sd6copy ADOS.TXT %1
  180. call %1\sd6copy AREADME.TXT %1
  181. call %1\sd6copy FAKEMOUS.COM %1
  182.  
  183.  
  184. :copy2
  185. if not exist %1\amjklfgh.002 goto copy3
  186. call %1\sd6copy DVORAK.SYS %1
  187. call %1\sd6copy DVORAK.TXT %1
  188. call %1\sd6copy KBDBUF.SYS %1
  189.  
  190.  
  191. :copy3
  192. if not exist %1\amjklfgh.003 goto copy4
  193. call %1\sd6copy DBLBOOT.BAT %1
  194. call %1\sd6copy DBLBOOT.INI %1
  195.  
  196.  
  197. :copy4
  198. if not exist %1\amjklfgh.004 goto copy5
  199. call %1\sd6copy ASSIGN.COM %1 D
  200. call %1\sd6copy BACKUP.EXE %1 D
  201. call %1\sd6copy COMP.EXE %1
  202. call %1\sd6copy CV.COM %1
  203. call %1\sd6copy EDLIN.EXE %1 D
  204. call %1\sd6copy JOIN.EXE %1 D
  205. call %1\sd6copy 4201.CPI %1
  206. call %1\sd6copy 4208.CPI %1
  207. call %1\sd6copy 5202.CPI %1
  208. call %1\sd6copy LCD.CPI %1
  209. call %1\sd6copy GORILLA.BAS %1
  210. call %1\sd6copy MONEY.BAS %1
  211. call %1\sd6copy NIBBLES.BAS %1
  212. call %1\sd6copy REMLINE.BAS %1
  213. call %1\sd6copy EXE2BIN.EXE %1 D
  214. call %1\sd6copy GRAFTABL.COM %1 D
  215. call %1\sd6copy MIRROR.COM %1
  216. call %1\sd6copy MSHERC.COM %1
  217. call %1\sd6copy PRINTER.SYS %1
  218. call %1\sd6copy PRINTFIX.COM %1
  219. call %1\sd6copy COMMANDS.TXT %1
  220.  
  221.  
  222. :copy5
  223. if not exist %1\amjklfgh.005 goto donecopy
  224.  
  225.  call %1\sd6copy CHANGEDISK 2
  226.  
  227. call %1\sd6copy NET.1XE %1
  228. call %1\sd6copy SETNAME.EXE %1
  229. call %1\sd6copy NETBEUI.DOS %1
  230. call %1\sd6copy NETWKSTA.1XE %1
  231. call %1\sd6copy NETWKSTA.2XE %1
  232. call %1\sd6copy REDIR.1XE %1
  233. call %1\sd6copy REDIR.2XE %1
  234. call %1\sd6copy NET.TXT %1
  235.  
  236.  
  237. :donecopy
  238. del %1\amjklfgh.00? > NUL
  239. del %1\sd6copy.bat > NUL
  240. del %1\expand.exe > NUL
  241. if exist %1\expand.999 ren %1\expand.999 expand.exe > NUL
  242. echo ---------------------------------------
  243. echo.
  244. echo Finished installing the MS-DOS 6 Supplemental utilities!
  245. echo.
  246. echo NOTE  If you installed the additional utilities from MS-DOS 5.0,
  247. echo you cannot use the utilities until you restart your computer.
  248. diskid0%SD6% %1
  249.  
  250.  
  251.  
  252.  
  253. :usage
  254. echo SETUP [drive:][path]
  255. echo.
  256. echo   [drive:][path] - Directory to install the utilities into.
  257. echo                    (ie. "C:\MSDOS", "C:").
  258. goto done
  259.  
  260. :patherr
  261. echo.
  262. echo Setup was unable to create the directory %1!
  263. echo.
  264. echo Note: The supplied directory name must not have a trailing \.  If you are
  265. echo       installing to the root directory, just specify the drive letter and
  266. echo       colon (ie. "C:").
  267. goto done
  268.  
  269. :enverr
  270. echo.
  271. echo ERROR: Not enough environment space to run SETUP.BAT!
  272. goto done
  273.  
  274. :direrr
  275. echo.
  276. echo ERROR: You must run SETUP.BAT from the drive and directory that contains
  277. echo        your supplemental disk files.
  278. goto done
  279.  
  280. :done
  281. if exist %1\amjklfgh.00? del %1\amjklfgh.00? > NUL
  282.  
  283.